Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nginx access & error log metric sources to only report metrics that are available #424

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

dhurley
Copy link
Collaborator

@dhurley dhurley commented Aug 2, 2023

Proposed changes

Update nginx access & error log metric sources to only report metrics that are available instead of returning zero for metrics that are missing.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

… that are available instead of returning zero for metric that are missing.
@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for agent-public-docs canceled.

Name Link
🔨 Latest commit 5214377
🔍 Latest deploy log https://app.netlify.com/sites/agent-public-docs/deploys/64ca62aa180a98000802202b

@github-actions github-actions bot added chore Pull requests for routine tasks dependencies labels Aug 2, 2023
@dhurley dhurley added bug Something isn't working and removed dependencies chore Pull requests for routine tasks labels Aug 2, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 96.20% and project coverage change: -0.10% ⚠️

Comparison is base (996d150) 67.57% compared to head (5214377) 67.48%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #424      +/-   ##
==========================================
- Coverage   67.57%   67.48%   -0.10%     
==========================================
  Files         113      113              
  Lines       12766    12737      -29     
==========================================
- Hits         8627     8595      -32     
- Misses       3569     3571       +2     
- Partials      570      571       +1     
Files Changed Coverage Δ
...ent/v2/src/core/metrics/sources/nginx_error_log.go 72.10% <62.50%> (-2.90%) ⬇️
...nt/v2/src/core/metrics/sources/nginx_access_log.go 85.97% <100.00%> (-0.73%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dhurley dhurley merged commit fbd1926 into main Aug 9, 2023
@dhurley dhurley deleted the return-no-metrics-instead-of-zero branch August 9, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants